import request from '@/sheep/request';

export default {
  // 客户管理：提交接口
    customerAddAPI: (data) =>
    request({
      url: 'api/customer/add',
      method: 'POST',
      custom: {
        auth: true,
        showSuccess: true
      },
      data
    }),
    // 客户管理：列表接口
  customerIndexAPI: (params) =>
    request({
      url: 'api/customer/index',
      method: 'GET',
      custom: {
        auth: true,
      },
      params
    }),
    // 客户管理：详情接口
  customerViewAPI: (params) =>
    request({
      url: 'api/customer/view',
      method: 'GET',
      custom: {
        auth: true,
      },
      params
    }),
    // 客户管理：修改接口
    customerEditAPI: (data) =>
    request({
      url: '/api/customer/edit',
      method: 'POST',
      custom: {
        auth: true,
        showSuccess: true
      },
      data
    }),
    // 客户管理：删除接口
    customerDelAPI:(params) =>
    request({
      url: '/api/customer/del',
      method: 'GET',
      custom: {
        auth: true,
        showSuccess: true
      },
      params
    }),
    // 客户管理：移交客户接口
    customerHand_overAPI: (data) =>
    request({
      url: '/api/customer/hand_over',
      method: 'POST',
      custom: {
        auth: true,
        showSuccess: true
      },
      data
    })
}


